package com.whmall.service.crm.enumeration;

/**
 * 公司用户券激活业务类型
 */
public enum CompanyUserCouponActivateBusinessTypeEnum {

    ORDER(1, "订单");

    public static CompanyUserCouponActivateBusinessTypeEnum fromValue(int value) {
        for (CompanyUserCouponActivateBusinessTypeEnum anEnum : values()) {
            if (anEnum.getValue() == value) {
                return anEnum;
            }
        }
        return null;
    }

    CompanyUserCouponActivateBusinessTypeEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }
    private final int value;

    private final String name;

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }
}
